package com.vic.designpattern.patterns.a_creational.simple_factory.a_general;

/**
 * 客户端/使用端
 * @author victor
 */
public class Client {

    public static void main(String[] args) {
        SenderFactory factory = new SenderFactory();
        // 如果传递的字段串出错，则不能正确创建对象
        Sender sender = factory.produce("email");
        sender.send();
    }

}
